import com.powerfl.frm.taf.*;

public function cameraFromTree( $view:String, $tree:String, $x:Number, $y:Number, $z:Number ):void{
	var camera:*, tree:*;
	camera = tdata( $view + '@camera' );
	tree = tdata( $tree ); 
	camera.x = tree.x + $x;
	camera.y = tree.y + $y;
	camera.z = tree.z + $z;
}
public function cameraFromTarget( $view:String, $x:Number, $y:Number, $z:Number ):void{
	var camera:*, target:*;
	camera = tdata( $view + '@camera' );
	target = tdata( $view + '@target' );
	camera.x = target.x + $x;
	camera.y = target.y + $y;
	camera.z = target.z + $z;
}

public function targetFromTree( $view:String, $tree:String, $x:Number, $y:Number, $z:Number ):void{
	var target:*, tree:*;
	target = tdata( $view + '@target' );
	tree = tdata( $tree ); 
	target.x = tree.x + $x;
	target.y = tree.y + $y;
	target.z = tree.z + $z;
}